--local mymath = requirelua("luascripts/localmath.lua");
--print( mymath.AddInt(1,12) );
json = requirelua('json.lua');
requirelua('PingProxy.lua');
requirelua('PingInvoker.lua');
requirelua('Generated/MainHero.lua')

proxy = nil;

function gamestart(domain,session)
	proxy = PingProxy.New(domain,session);
end

function fire(mainhero)
	--proxy:Ping("hello lua",callback);
	local t = MainHero.Get(mainhero);
	AppLog(t.Id);
	t:sayHello();
	AppLog("start fire");
end

function callback(jsonstring)
	local t = json.decode(jsonstring);
	AppLog(t.returnValue);
end

AppLog('application done!')